package org.budo.support.java.awt.robot;

import java.awt.image.BufferedImage;

import lombok.Getter;

/**
 * @author limingwei
 */
@Getter
public class BudoSubImageImpl extends BudoImageImpl {
    private BudoImageImpl parent;

    private int x;

    private int y;

    private int w;

    private int h;

    public BudoSubImageImpl(BufferedImage bufferedImage, BudoImageImpl parent, int x, int y, int w, int h) {
        super(bufferedImage);

        this.parent = parent;

        this.x = x;
        this.y = y;
        this.w = w;
        this.h = h;
    }

    @Override
    public String toString() {
        return super.toString() //
                + ", parent=" + parent//
                + ", x=" + x//
                + ", y=" + y//
                + ", w=" + w//
                + ", h=" + h;
    }
}